import request from '../utils/request';
// 查询停车场
export function getParkListApi(data) {
  return request.http("/park/park-info/getParkManageParkInfoByManage", "get")
}
// 查询停车场相关信息
export function getParkingOwnerDataApi(data) {
    return request.http("/order/orderInfo/getParkingOwnerData", "get",data)
}
// 对账列表
export function getParkBillListApi(data) {
    return request.http("/get/day/bill", "post",data,0)
}
// 账单结算
export function billAccountsApi(data) {
    return request.http("/settled/bill", "post",data,0)
}
// 订单明细
export function getOrderDetailApi(data) {
    return request.http("/order/details", "post",data,0)
}
// 收益明细
export function getRevenueSourceApi(data) {
    return request.http("/revenue/source", "post",data,0)
}
// 结算历史
export function getSettledHistoryApi(data) {
    return request.http("/settled/history", "post",data,0)
}
// 车场通行券
// 1.添加通行券
export function addTicketApi(data) {
    return request.http("/add/tickets", "post",data,0)
}
// 2.查看通行券
export function getTicketListApi(data) {
    return request.http("/query/tickets", "post",data,0)
}
// 3.修改通行券
export function updateTicketApi(data) {
    return request.http("/update/tickets", "post",data,0)
}
// 4.删除通行券
export function deleteTicketApi(data) {
    return request.http("/delete/tickets", "post",data)
}
// 出售明细
export function getTicketsSaleListApi(data) {
    return request.http("/tickets/sale/record", "post",data,0)
}


// 注册
export function registerApi(data) {
    return request.http("/user/logon","post",data,1)
}

// 登录
export function loginApi(data) {
    return request.http("/user/login","post",data,1)
}

// 添加车场
export function addParkInfoApi(data) {
    return request.http("/add/park","post",data,0)
}

// 修改车场
export function editParkInfoApi(data) {
    return request.http("/update/park","post",data,0)
}

// 查询车场
export function getParkInfoListApi(data) {
    return request.http("/query/park","post",data,0)
}

// 查询已审核车场
export function auditedPark(data) {
    return request.http("/find/park","post",data,1)
}

// 查询车场当日、当月盈利
export function getParkProfitApi(data) {
    return request.http("/order/orderInfo/order/profit","post",data,1)
}

// 查询某日盈利
export function getParkProfitDayApi(data) {
	return request.http("/order/orderInfo/day/order/profit","post",data,0)
}

// 查询未结算车费和通行券余额 /get/bill
export function getBillListApi(data) {
    return request.http("/get/bill","post",data,1)
}

// 每日订单统计
export function getParkOrderStatisticsApi(data) {
    return request.http('/get/count/bill',"post",data,0)
}

// 车辆查询
export function getCarOrderListApi(data) {
    return request.http('/query/car/bill',"post",data,0)
}

// 查询每日每月明细接口
export function getMonthBillApi(data) {
    return request.http('/get/month/bill',"post",data,0)
}

// 查询当月停车总量
export function getMonthTotalSumApi(data) {
    return request.http('/get/month/car',"post",data,0)
}

// 出售车场券
export function buyTicketsApi(data) {
    return request.http('/buy/tickets',"post",data,0)
}

// 查询通行券余额
export function getTicketbalanceApi(data) {
  return request.http('/get/ticket/balance',"post",data,1)
}

// 我的页面车场收益
export function getParkIncomeApi(data) {
  return request.http('/query/park/income',"post",data,0)
}

// 查询已添加车场
export function getAddedParkApi(data) {
  return request.http('/search/exist/park',"post",data,1)
}

// 设置自动结算
export function setAutoSettledApi(data) {
  return request.http('/set/auto/settled',"post",data,0)
}

// 授权手机号
export function getMobilePhoneApi(data) {
  return request.http('/bind/mobilePhone',"post",data,0)
}

// 获取token信息
export function getTokenApi(data) {
  return request.http('/mobilePhone/login',"post",data,0)
}

// 备案审批添加车场
export function addRecordApprovalApi(data) {
  return request.http('/add/record/approval',"post",data,0)
}

// 查询备案审批信息
export function findRecordApprovalApi(data) {
  return request.http('/find/record/approval',"post",data,0)
}

